<?
if (empty($permsion)) {
    $permsion = array();
}
?>

<div id="element" class="row-fluid">
    <!--span-->
    <div class="span12">
        <!--box-->
        <div class="box corner-all">
            <div class="box-header grd-white color-silver-dark corner-top">
                <div class="header-control">
                    <a data-box="collapse"><i class="icofont-caret-up"></i></a>
                    
                </div>
                <span><?= lang('label_admin_permission') ?></span>
            </div>
            <div class="box-body">

                <div class="control-group">
                    <label class="control-label" style="font-weight: 900"><?= lang('label_menu_link_orders') ?></label>
                    <div class="controls" style="clear: both; margin-right: 35px">
                        <div class="input" >
                            <input type="checkbox" style="float: right" id="ch1" style="float: right" name="roles[]" <? if (in_array('orders', $permsion)) { ?> checked="checked" <? } ?>  value="orders" class="normal-check">
                            <label for="ch1"><?= lang('label_mamager_view') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch2" name="roles[]"  <? if (in_array('orders/add', $permsion)) { ?> checked="checked" <? } ?>  value="orders/add" class="normal-check">
                            <label for="ch2"><?= lang('label_mamager_add') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch3" name="roles[]"  <? if (in_array('orders/edit', $permsion)) { ?> checked="checked" <? } ?>  value="orders/edit"class="normal-check">
                            <label for="ch3"><?= lang('label_mamager_edit') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch100" name="roles[]"  <? if (in_array('orders/all', $permsion)) { ?> checked="checked" <? } ?>  value="orders/all"class="normal-check">
                            <label for="ch100"><?= lang('label_mamager_all') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch4" name="roles[]" <? if (in_array('orders/delete', $permsion)) { ?> checked="checked" <? } ?>  value="orders/delete"class="normal-check">
                            <label for="ch4"><?= lang('label_mamager_delete') ?></label>
                        </div>
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label" style="font-weight: 900"><?= lang('label_menu_link_users') ?></label>
                    <div class="controls" style="clear: both; margin-right: 35px">
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch5"  name="roles[]"  <? if (in_array('users', $permsion)) { ?> checked="checked" <? } ?>  value="users" class="normal-check">
                            <label for="ch5"><?= lang('label_mamager_view') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch6"  name="roles[]"  <? if (in_array('users/add', $permsion)) { ?> checked="checked" <? } ?>  value="users/add" class="normal-check">
                            <label for="ch6"><?= lang('label_mamager_add') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch7"  name="roles[]" <? if (in_array('users/edit', $permsion)) { ?> checked="checked" <? } ?> value="users/edit" class="normal-check">
                            <label for="ch7"><?= lang('label_mamager_edit') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="login_roles"  name="roles[]" <? if (in_array('users/login', $permsion)) { ?> checked="checked" <? } ?> value="users/login" class="normal-check">
                            <label for="login_roles"><?= lang('label_user_login_like') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch8"  name="roles[]" <? if (in_array('users/all', $permsion)) { ?> checked="checked" <? } ?> value="users/all" class="normal-check">
                            <label for="ch8"><?= lang('label_mamager_all') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch9"  name="roles[]" <? if (in_array('users/delete', $permsion)) { ?> checked="checked" <? } ?> value="users/delete" class="normal-check">
                            <label for="ch9"><?= lang('label_mamager_delete') ?></label>
                        </div>
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label" style="font-weight: 900"><?= lang('label_menu_link_pages') ?></label>
                    <div class="controls" style="clear: both; margin-right: 35px">
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch10"  name="roles[]" <? if (in_array('pages', $permsion)) { ?> checked="checked" <? } ?> value="pages" class="normal-check">
                            <label for="ch10"><?= lang('label_mamager_view') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch11"  name="roles[]" <? if (in_array('pages/add', $permsion)) { ?> checked="checked" <? } ?> value="pages/add" class="normal-check">
                            <label for="ch11"><?= lang('label_mamager_add') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch12"  name="roles[]" <? if (in_array('pages/edit', $permsion)) { ?> checked="checked" <? } ?> value="pages/edit" class="normal-check">
                            <label for="ch12"><?= lang('label_mamager_edit') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch13"  name="roles[]" <? if (in_array('pages/all', $permsion)) { ?> checked="checked" <? } ?> value="pages/all" class="normal-check">
                            <label for="ch13"><?= lang('label_mamager_all') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch15"  name="roles[]" <? if (in_array('pages/delete', $permsion)) { ?> checked="checked" <? } ?> value="pages/delete" class="normal-check">
                            <label for="ch15"><?= lang('label_mamager_delete') ?></label>
                        </div>
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label" style="font-weight: 900"><?= lang('label_menu_link_addressbooks') ?></label>
                    <div class="controls" style="clear: both; margin-right: 35px">
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch17"  name="roles[]" <? if (in_array('addressbooks', $permsion)) { ?> checked="checked" <? } ?> value="addressbooks" class="normal-check">
                            <label for="ch17"><?= lang('label_mamager_view') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch18"  name="roles[]" <? if (in_array('addressbooks/add', $permsion)) { ?> checked="checked" <? } ?> value="addressbooks/add" class="normal-check">
                            <label for="ch18"><?= lang('label_mamager_add') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch19"  name="roles[]" <? if (in_array('addressbooks/edit', $permsion)) { ?> checked="checked" <? } ?> value="addressbooks/edit" class="normal-check">
                            <label for="ch19"><?= lang('label_mamager_edit') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch20"  name="roles[]" <? if (in_array('addressbooks/all', $permsion)) { ?> checked="checked" <? } ?> value="addressbooks/all" class="normal-check">
                            <label for="ch20"><?= lang('label_mamager_all') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch21"  name="roles[]" <? if (in_array('addressbooks/delete', $permsion)) { ?> checked="checked" <? } ?> value="addressbooks/delete" class="normal-check">
                            <label for="ch21"><?= lang('label_mamager_delete') ?></label>
                        </div>
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label" style="font-weight: 900"><?= lang('label_menu_link_private_messages') ?></label>
                    <div class="controls" style="clear: both; margin-right: 35px">
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch22"  name="roles[]" <? if (in_array('private_messages', $permsion)) { ?> checked="checked" <? } ?> value="private_messages" class="normal-check">
                            <label for="ch22"><?= lang('label_mamager_view') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch23"  name="roles[]" <? if (in_array('private_messages/add', $permsion)) { ?> checked="checked" <? } ?> value="private_messages/add" class="normal-check">
                            <label for="ch23"><?= lang('label_mamager_add') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch24"  name="roles[]" <? if (in_array('private_messages/edit', $permsion)) { ?> checked="checked" <? } ?> value="private_messages/edit" class="normal-check">
                            <label for="ch24"><?= lang('label_mamager_edit') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch25"  name="roles[]" <? if (in_array('private_messages/all', $permsion)) { ?> checked="checked" <? } ?> value="private_messages/all" class="normal-check">
                            <label for="ch25"><?= lang('label_mamager_all') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch26"  name="roles[]" <? if (in_array('private_messages/delete', $permsion)) { ?> checked="checked" <? } ?> value="private_messages/delete" class="normal-check">
                            <label for="ch26"><?= lang('label_mamager_delete') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="private_messagesend"  name="roles[]" <? if (in_array('private_messages/send', $permsion)) { ?> checked="checked" <? } ?> value="private_messages/send" class="normal-check">
                            <label for="private_messagesend">{send_roles}</label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="private_messagereply"  name="roles[]" <? if (in_array('private_messages/reply', $permsion)) { ?> checked="checked" <? } ?> value="private_messages/reply" class="normal-check">
                            <label for="private_messagereply">{reply_roles}</label>
                        </div>   
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label" style="font-weight: 900"><?= lang('label_menu_link_invoices') ?></label>
                    <div class="controls" style="clear: both; margin-right: 35px">
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch27"  name="roles[]" <? if (in_array('invoices', $permsion)) { ?> checked="checked" <? } ?> value="invoices" class="normal-check">
                            <label for="ch27"><?= lang('label_mamager_view') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch28"  name="roles[]" <? if (in_array('invoices/add', $permsion)) { ?> checked="checked" <? } ?> value="invoices/add" class="normal-check">
                            <label for="ch28"><?= lang('label_mamager_add') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch29"  name="roles[]" <? if (in_array('invoices/edit', $permsion)) { ?> checked="checked" <? } ?> value="invoices/edit" class="normal-check">
                            <label for="ch29"><?= lang('label_mamager_edit') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch30"  name="roles[]" <? if (in_array('invoices/all', $permsion)) { ?> checked="checked" <? } ?> value="invoices/all" class="normal-check">
                            <label for="ch30"><?= lang('label_mamager_all') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch31"  name="roles[]" <? if (in_array('invoices/delete', $permsion)) { ?> checked="checked" <? } ?> value="invoices/delete" class="normal-check">
                            <label for="ch31"><?= lang('label_mamager_delete') ?></label>
                        </div>
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label" style="font-weight: 900"><?= lang('label_menu_link_shipingcompany') ?></label>
                    <div class="controls" style="clear: both; margin-right: 35px">
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch32"  name="roles[]" <? if (in_array('shippingcom', $permsion)) { ?> checked="checked" <? } ?> value="shippingcom" class="normal-check">
                            <label for="ch32"><?= lang('label_mamager_view') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch33"  name="roles[]" <? if (in_array('shippingcom/add', $permsion)) { ?> checked="checked" <? } ?> value="shippingcom/add" class="normal-check">
                            <label for="ch33"><?= lang('label_mamager_add') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch34"  name="roles[]" <? if (in_array('shippingcom/edit', $permsion)) { ?> checked="checked" <? } ?> value="shippingcom/edit" class="normal-check">
                            <label for="ch34"><?= lang('label_mamager_edit') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch35"  name="roles[]" <? if (in_array('shippingcom/all', $permsion)) { ?> checked="checked" <? } ?> value="shippingcom/all" class="normal-check">
                            <label for="ch35"><?= lang('label_mamager_all') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch36"  name="roles[]" <? if (in_array('shippingcom/delete', $permsion)) { ?> checked="checked" <? } ?> value="shippingcom/delete" class="normal-check">
                            <label for="ch36"><?= lang('label_mamager_delete') ?></label>
                        </div>
                    </div>
                </div>

                <div class="control-group">
                    <label class="control-label" style="font-weight: 900"><?= lang('label_menu_link_statues') ?></label>
                    <div class="controls" style="clear: both; margin-right: 35px">
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch37"  name="roles[]" <? if (in_array('statues', $permsion)) { ?> checked="checked" <? } ?> value="statues" class="normal-check">
                            <label for="ch37"><?= lang('label_mamager_view') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch38"  name="roles[]" <? if (in_array('statues/add', $permsion)) { ?> checked="checked" <? } ?> value="statues/add" class="normal-check">
                            <label for="ch38"><?= lang('label_mamager_add') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch39"  name="roles[]" <? if (in_array('statues/edit', $permsion)) { ?> checked="checked" <? } ?> value="statues/edit" class="normal-check">
                            <label for="ch39"><?= lang('label_mamager_edit') ?></label>
                        </div>
                        <div class="input">
                            <input type="checkbox" style="float: right" id="ch40"  name="roles[]" <? if (in_array('statues/all', $permsion)) { ?> checked="checked" <? } ?> value="statues/all" class="normal-check">
                            <label for="ch40"><?= lang('label_mamager_all') ?></label>
                        </div>
                    </div>
                </div>



            </div>
        </div>
    </div>
</div>